	const vm=new Vue({
					el:"#app",
					data:{
						comment:MYCOMMENT
					},
					methods:{
						commentSubmit(){
							let content=$j("#mytext").val();
							let reg=/^[1-9][0-9]{4,}$/;
							let value=$j("#inputSuccess4").val();
							let qqname=$j("input[name=qqname]").val();
							if(content.trim().length<1){
								$j("#btnIssue").attr("data-content","你还没有输入内容呢！")
								$j("#btnIssue").popover('show');
							}else if(value.trim().length<1){
								$j("#btnIssue").attr("data-content","你还没有输入账号呢！")
								$j("#btnIssue").popover('show');
							}else if(!reg.test(value)){
								$j("#btnIssue").attr("data-content","请输入正确的qq号码！")
								$j("#btnIssue").popover('show');
							}else{
								$j("#btnIssue").popover('destroy');
								let jsonStr=$j("form").serialize();
								jsonStr=jsonStr+"&caid="+AID;
								console.log(jsonStr);
								$j.post("info.do",jsonStr,function(data){
									//跟新评论列表
									if(data!='false'){
										vm.comment=data;
									}else{
										alert('评论过于频繁，请10分钟后在试！');
									}
									$j("div.p-post input").val("");
									$j("#mytext").val("");
								},"json")
							}
						},
						likeCount(item){
							var isok=$j('div[myprop='+item.cid+']').find('span:first').hasClass('text-danger');
							if(isok==false){
							$j.post("comment.do","cid="+item.cid,function(e){
								if(e=='true'){
									item.likeNum++;
								}
								$j('div[myprop='+item.cid+']').find('span:first').addClass('text-danger');
								var testNum=Math.ceil(Math.random()*3);
								var color;
								if(testNum==1) color='red';
								else if(testNum==2) color='#1545d3';
								else color='#00de04';
								$j('div[myprop='+item.cid+']').find('span:last').css('color',color).animate({top:'-18px',opacity:'1'},800,function(){
									$j(this).animate({opacity:"0"},300,function(){
											$j(this).css({'top':'0px',opacity:"0"});
									});
								})
							},"Text")
							}else{
								alert("你已经点过赞了");
							}
						},
						testMethod(){
							var test=this.comment.map((value)=>{
								let newValue=value.cid;
								return newValue;
							})
							if(this.comment.length>=1){
							$j.getJSON("comment.do","currentComment="+test,function(data){
								if(data!="true"){
									$j.each(data,function(i,dom){
										$j('div[myprop='+dom+']').find('span:first').addClass('text-danger');
									})
								}
							})
						 }
						}
						
					},
					filters:{
						getTimer(stringTime){
							var minute = 1000 * 60;
							var hour = minute *60;
							var day = hour *24;
							var week = day * 7;
							var month = day * 30;
						    var time1 = new Date().getTime();//当前的时间戳
						    var time2 = Date.parse(new Date(stringTime));//指定时间的时间戳
						    var time = time1 - time2;
						    var result = null;
						    if(time < 0){
						       result='刚刚';
						    }else if(time/month >= 1){
						        result = "发布于" + parseInt(time/month) + "月前";
						    }else if(time/week >= 1){
						        result = "发布于" + parseInt(time/week) + "周前";
						    }else if(time/day >= 1){
						        result = "发布于" + parseInt(time/day) + "天前";
						    }else if(time/hour >= 1){
						        result = "发布于" + parseInt(time/hour) + "小时前";
						    }else if(time/minute >= 1){
						        result = "发布于" + parseInt(time/minute) + "分钟前";
						    }else {
						        result = "刚刚";
						    }
							return result;
					}
					
			}
			});
			vm.$nextTick(vm.testMethod);